package com.lagou.edu.service;

/**
 * @author zhangjinshan
 * @version 1.0
 * @description
 * @date 2021/8/25 下午8:40
 */
public interface CodeService {

    /**
     * 创建Code并发送给邮箱
     * @param email
     * @return
     */
    boolean create(String email);

    /**
     * 校验Code是否正确
     * @param email
     * @param code
     * @return
     */
    Integer validate(String email, String code);
}
